#include <fstream>

int main()
{
   std::ifstream input("in.txt");
   std::ofstream output("out.txt");
   int n;
   input >> n;
   int x = 0, y = 0;
   int max_x = 1, max_y = 1;
   int min_x = -1, min_y = -1;
   int dir = -1;
   for (int i = 0; i < n; i++)
   {
      output << x << " " << y << "\n";
      dir++;
      switch (dir % 4)
      {
      case 0:
            x = max_x;
            max_x++;
            break;
      case 1:
            y = max_y;
            max_y++;
            break;   
      case 2:
            x = min_x;
            min_x--;
            break;
      case 3:
            y = min_y;
            min_y--;
            break;
      }
   }
   return 0;
}